package com.xuecheng.web.exceptions;


import com.xuecheng.commons.enums.ErrorCode;
import lombok.Data;

//自定义异常
@Data
public class BusinessException extends RuntimeException{
    //参数（错误信息和错误码）
    private ErrorCode errorCode;

    public BusinessException(ErrorCode errorCode){
        this.errorCode = errorCode;
    }
}
